package com.usian.skill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.skill.pojo.SkillGoods;
import org.apache.ibatis.annotations.Update;

public interface SkillGoodsMapper extends BaseMapper<SkillGoods> {
    //减库存
    @Update("update skill_goods set stockCount=stockCount-1 where goodsId=#{goodsId}")
    public int reduceStock(Long goodsId);
}
